<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/common/include/TLDInclude.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>user-input.jsp</title>
		<%@ include file="/WEB-INF/common/include/meta.jsp"%>
		<%@ include file="/WEB-INF/common/include/jquery.jsp"%>
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	</head>

	<body>
		<c:if test="${not empty msg}">
			<div id="message" style="color: red;" align="center">
				${msg}
			</div>
		</c:if>
		<form:form action="${ctx}/demo/save" method="post" modelAttribute="user">
			<form:hidden path="id"/>
				<div align="center">
					<table>
						<tbody>
							<tr>
								<th><spring:message code="username" /></th>
								<td><form:input path="username"/> </td>
								<th><spring:message code="gender" /></th>
								<td><form:radiobutton path="gender" value="0" label="男"/><form:radiobutton path="gender" value="1" label="女"/> </td>
							</tr>
							<tr>
								<th><spring:message code="birthday" /></th>
								<td colspan="3"><form:input path="birthday"/> </td>
							</tr>
						</tbody>
					</table>
					<p>
						<input type="submit" value="<spring:message code="save" />">
					</p>
				</div>
		</form:form>
	</body>
</html>
